
<div class="col-md-12 col-sm-12 col-xs-12">
  <div class="x_panel">
    <div class="x_title">
      <h2>{$pri_name}</h2>
      <div class="clearfix"></div>
    </div>
    <div class="x_content">
      <form class="form-horizontal form-label-left" novalidate action="" id="commentForm" method="post" enctype="multipart/form-data">
      <p><code>备注:</code></a></p>


        {:html_text('标题','title',$info)}
        {:html_text('标题','title',$info)}

        <div class="ln_solid"></div>
        <div class="form-group">
          <div class="col-md-6 col-md-offset-3">
            <button id="submit" type="submit" class="btn btn-success">提交</button>
            <div class="btn btn-primary" onclick="history.go(-1)">返回</div>
          </div>
        </div>
      </form>
    </div>
  </div>
</div>
<script>
  function GetRegion(val,level){
    var $city = $("#city");
    var $area = $("#area");
    $.ajax({
      type: "post",
      url: "{:url('console/common/getRegion')}",
      data: { pcode: val,level:level},
      beforeSend: function() {
        if(level=='1'){
          $city.html('<option value=""> --请选择市-- </option>');
          $city.val('');
        }
        $area.html('<option value=""> --请选择区-- </option>');
        $area.val('');
      },
      success: function(data) {
        var dataObj=eval("("+data+")");//转换为json对象

        if(dataObj['code']==1){
          if(level=='1'){
            $.each(dataObj['list'], function(i, item) {
              $city.append('<option value="'+item['code']+'">'+item['name']+'</option>');
            });
          }else{
            $.each(dataObj['list'], function(i, item) {
              $area.append('<option value="'+item['code']+'">'+item['name']+'</option>');
            });
          }
        }
      },
      error: function(err){
        console.log(JSON.stringify(err));
      }
    });
  }
</script>



